package com.sailfish.springbootdemo.service.db1;


import com.sailfish.springbootdemo.pojo.Result;
import com.sailfish.springbootdemo.pojo.db1.Upkeep;
import com.sailfish.springbootdemo.pojo.db1.UpkeepAudit;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UpkeepAuditService {

    /**
     * 新增
     *
     * @param upkeepAudit
     * @return
     */
    Result addUpkeepAudit(UpkeepAudit upkeepAudit);

    /**
     * 审核
     *
     * @return
     */
    Result auditUpkeepAudit(String notes, Integer upkeepId, Integer upkeepStatus);

    /**
     * 删除
     *
     * @param upkeepId
     * @return
     */
    Result deleteUpkeepAudit(Integer upkeepId);

    /**
     * 更新
     *
     * @param upkeepAudit
     * @return
     */
    Boolean updateUpkeepAudit(UpkeepAudit upkeepAudit) throws Exception;

    /**
     * 根据资产编号查询
     *
     * @param assetNumber
     * @return
     */
    List<UpkeepAudit> getUpkeepAuditByAssetNumber(String assetNumber, String isDeleteStr);

    /**
     * 根据id查询
     *
     * @param upkeepId
     * @return
     */
    UpkeepAudit getById(Integer upkeepId);
}
